package com.android.xk.mask.view

import android.content.Context
import android.util.AttributeSet
import android.widget.VideoView

class FullVideoView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) :
        VideoView(context, attrs, defStyleAttr)
{
    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)
    {
        //int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
        val widthSpecSize = MeasureSpec.getSize(widthMeasureSpec);
        //int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
        val heightSpecSize = MeasureSpec.getSize(heightMeasureSpec);
        setMeasuredDimension(widthSpecSize, heightSpecSize)
    }
}